export default {
  data() {
    return {
      gameLevel: 0,
      played: false
    }
  },
  computed: {
    levelCount() {
      return this.levelOptions.length
    }
  },
  methods: {
    pre() {
      this.played = true
      this.gameLevel = this.gameLevel - 1
      this.onGameLevelChange(this.gameLevel)
      this.startGame()
    },
    next() {
      this.played = true
      this.gameLevel = this.gameLevel + 1
      this.onGameLevelChange(this.gameLevel)
      this.startGame()
    },
    setGameLevel(level) {
      this.gameLevel = level
    }
  }
}
